<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="?attr/main_background_last">


    <LinearLayout
        android:id="@+id/linearLayout3"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginTop="@dimen/_7sdp"
        android:background="?attr/main_background_last"
        android:orientation="horizontal"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <ImageButton
            android:id="@+id/btBack"
            android:layout_width="@dimen/_25sdp"
            android:layout_height="@dimen/_25sdp"
            android:layout_gravity="center"
            android:layout_marginStart="@dimen/_10sdp"
            android:src="@drawable/icon_close_main"
            android:scaleY="0.8"
            android:scaleX="0.8"
            android:background="@drawable/button_action_ripple" />

        <TextView
            android:id="@+id/btAdd"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginEnd="@dimen/_10sdp"
            android:fontFamily="@font/inter_medium"
            android:gravity="right"
            android:text="Опубликовать"
            android:textColor="?attr/main_text_color"
            android:textSize="@dimen/_12sdp" />
    </LinearLayout>

    <View
        android:id="@+id/view"
        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginTop="@dimen/_6sdp"
        android:layout_marginHorizontal="@dimen/_10sdp"
        android:background="?attr/devider_news"
        app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />

    <EditText
        android:id="@+id/tvTitle"
        android:layout_width="match_parent"
        android:layout_height="@dimen/_60sdp"
        android:layout_marginHorizontal="@dimen/_20sdp"
        android:background="@android:color/transparent"
        android:fontFamily="@font/inter"
        android:gravity="top"
        android:hint="Тема обсуждения:"
        android:inputType="text"
        android:layout_marginTop="@dimen/_10sdp"
        android:lineSpacingMultiplier="1"
        android:padding="@dimen/_4sdp"
        android:textColor="?attr/main_text_color"
        android:textSize="@dimen/_13sdp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/linearLayout3" />

    <View

        android:layout_width="match_parent"
        android:layout_height="1dp"
        android:layout_marginHorizontal="@dimen/_50sdp"
        android:background="?attr/devider_news"
        app:layout_constraintTop_toBottomOf="@+id/tvTitle"
        tools:layout_editor_absoluteX="65dp" />

    <EditText
        android:id="@+id/tvMainText"
        android:layout_width="match_parent"
        android:layout_height="@dimen/_350sdp"
        android:layout_marginHorizontal="@dimen/_20sdp"
        android:background="@android:color/transparent"
        android:fontFamily="@font/inter"
        android:gravity="top"
        android:layout_marginTop="@dimen/_10sdp"
        android:hint="Основной текcт обсуждения:"
        android:lineSpacingMultiplier="1"
        android:textColor="?attr/main_text_color"
        android:textSize="@dimen/_13sdp"
        app:layout_constraintTop_toBottomOf="@+id/tvTitle"
        tools:layout_editor_absoluteX="26dp" />

    <LinearLayout
        android:id="@+id/file"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="@dimen/_20sdp"
        android:background="?attr/main_background_last"
        android:orientation="horizontal"
        android:visibility="gone"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toBottomOf="@+id/tvMainText">

        <ImageButton
            android:layout_width="@dimen/_25sdp"
            android:layout_height="@dimen/_25sdp"
            android:layout_gravity="center"
            android:layout_marginStart="@dimen/_10sdp"
            android:background="@drawable/button_action_ripple"
            android:scaleX="0.8"
            android:scaleY="0.8"
            android:src="@drawable/icon_file" />

        <TextView
            android:id="@+id/tvFileName"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginEnd="@dimen/_10sdp"
            android:layout_weight="1"
            android:fontFamily="@font/inter_medium"
            android:text="Название файла"
            android:textColor="?attr/main_text_color"
            android:textSize="@dimen/_12sdp" />

        <ImageButton
            android:id="@+id/btClose"
            android:layout_width="@dimen/_25sdp"
            android:layout_height="@dimen/_25sdp"
            android:layout_gravity="center"
            android:layout_marginStart="@dimen/_10sdp"
            android:background="@drawable/button_action_ripple"
            android:scaleX="0.8"
            android:scaleY="0.8"
            android:src="@drawable/icon_close_main" />
    </LinearLayout>

    <LinearLayout
        android:id="@+id/btAddPhoto"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="@dimen/_50sdp"
        android:layout_weight="0"
        android:foreground="@drawable/button_action_ripple"
        android:background="@drawable/background_edittext_search"
        android:orientation="vertical"
        android:layout_marginBottom="@dimen/_20sdp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent">

        <ImageView
            android:layout_width="@dimen/_18sdp"
            android:layout_height="@dimen/_18sdp"
            android:layout_gravity="center"
            android:layout_marginTop="@dimen/_8sdp"
            android:background="@drawable/icon_image" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/_2sdp"
            android:layout_marginBottom="@dimen/_6sdp"
            android:text="Прикрепить фото"
            android:textAlignment="center"
            android:textColor="?attr/main_text_color"
            android:textSize="@dimen/_12sdp" />
    </LinearLayout>



</androidx.constraintlayout.widget.ConstraintLayout>